#include "listitembase.h"
#include<QStyleOption>
#include<QPainter>
#include<QStyle>
ListItemBase::ListItemBase(QWidget *parent) : QWidget(parent)
{
}
void ListItemBase::SetItemType(ListItemType itemType)
{
    _itemType = itemType;
}
ListItemType ListItemBase::GetItemType()
{
    return _itemType;
}

void ListItemBase::paintEvent(QPaintEvent *event)
{
    QStyleOption opt;
    opt.init(this);
    QPainter p(this);
    style()->drawPrimitive(QStyle::PE_Widget,&opt,&p,this);
}
